package cn.aicnn.chatssespringboot.service.Impl;

import cn.aicnn.chatssespringboot.service.NewResponseVOService;
import cn.aicnn.chatssespringboot.vo.newQuestionResponseVO;
import org.springframework.stereotype.Service;

@Service
public class NewResponseVOServiceImpl implements NewResponseVOService {
    @Override
    public newQuestionResponseVO createTextResponse(int chatId, String chatName, String answer) {
        newQuestionResponseVO newQuestionResponseVO = new newQuestionResponseVO();
        newQuestionResponseVO.setChatid(chatId);
        newQuestionResponseVO.setChatname(chatName);
        cn.aicnn.chatssespringboot.vo.newQuestionResponseVO.Answer responseAnswer = new newQuestionResponseVO.Answer();
        responseAnswer.setText(answer);
        responseAnswer.setType(false);
        newQuestionResponseVO.setAnswer(responseAnswer);
        return newQuestionResponseVO;
    }
}
